Compiler Design


Q111.

Match thefollowing:
GateOverflow

Q112.

simple two-pass assembler does which of the following in the first pass:
GateOverflow

Q113.

Dynamic linking can cause security concerns because
GateOverflow

Q114.

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?
GateOverflow

Q115.

Consider a program P that consists of two source modules M1 and M2 contained in two different files. If M1 contains a reference to a function defined in M2 the reference will be resolved at
GateOverflow

Q116.

In compiler terminology reduction in strength means
GateOverflow

Q117.

Which of the following statements are CORRECT? 1) Static allocation of all data areas by a compiler makes it impossible to implement recursion. 2) Automatic garbage collection is essential to implement recursion. 3) Dynamic allocation of activation records is essential to implement recursion. 4) Both heap and stack are essential to implement recursion.
GateOverflow

Q118.

Faster access to non-local variables is achieved using an array of pointers to activation records called a
GateOverflow

Q119.

The overlay tree for a program is as shown below:What will be the size of the partition (in physical memory) required to load (and run) this program?
GateOverflow

Q120.

A linker reads four modules whose lengths are 200, 800, 600 and 500 words, respectively. If they are loaded in that order, what are the relocation constants?
GateOverflow